set(LOCAL_MODULE libbt-hci)

set(LOCAL_SRC_FILES 
    src/btsnoop.c 
    src/btsnoop_mem.c 
    src/btsnoop_net.c 
    src/buffer_allocator.c 
    src/hci_audio.c 
    src/hci_hal.c 
    src/hci_hal_h4.c 
    src/hci_hal_mct.c 
    src/hci_inject.c 
    src/hci_layer.c 
    src/hci_packet_factory.c 
    src/hci_packet_parser.c 
    src/low_power_manager.c 
    src/packet_fragmenter.c 
    src/vendor.c
)

include_directories(
    $(CMAKE_CURRENT_SOURCE_DIR)/include 
    $(CMAKE_CURRENT_SOURCE_DIR)/.. 
    $(CMAKE_CURRENT_SOURCE_DIR)/../include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../btcore/include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../gki/common 
    $(CMAKE_CURRENT_SOURCE_DIR)/../gki/ulinux 
    $(CMAKE_CURRENT_SOURCE_DIR)/../osi/include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../stack/include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../utils/include 
    $(bdroid_C_INCLUDES)
)

add_library(${LOCAL_MODULE} SHARED ${LOCAL_SRC_FILES})
set_target_properties(${LOCAL_MODULE} PROPERTIES PREFIX "")
target_link_libraries(${LOCAL_MODULE} -lrt -ldl libosi libbtcore)

